entry: Clarify docs
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Sep 2021 19:40:41 +0000 (15:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Sep 2021 19:40:41 +0000 (15:40 -0400)
Mention that max length is in characters.

gtk/gtkentry.c

index 9ad392ba3c3efd9b784b7eb55ce9b9a9978c08fb..399a065d04e8121e09c90ee8d8eed06c2359a235 100644 (file)
@@ -2295,7 +2295,7 @@ gtk_entry_get_overwrite_mode (GtkEntry *entry)
  * Sets the maximum allowed length of the contents of the widget.
  *
  * If the current contents are longer than the given length, then
- * they will be truncated to fit.
+ * they will be truncated to fit. The length is is in characters.
  *
  * This is equivalent to getting @entry's `GtkEntryBuffer` and
  * calling [method@Gtk.EntryBuffer.set_max_length] on it.